package com.velpro.im.mapper;

import java.util.List;

import com.velpro.im.mapper.po.PartnerType;
import org.apache.ibatis.annotations.Param;



public interface PartnerTypeMapper {

    PartnerType get(@Param("id") int id);
    
    List<PartnerType> list(@Param("path")String path,@Param("enabled")Boolean enabled);
    
    int enable(@Param("id")int id, @Param("enabled")boolean enabled);
    
    int insert(@Param("item")PartnerType item);
    
    int update(@Param("item")PartnerType item);
    
    int updateSeqNum(@Param("id")int id, @Param("seqNum")int seqNum);
    
    int delete(@Param("id")int id);

	List<PartnerType> getDataByCategory( @Param("category") Integer category);
	
	List<PartnerType> getSubList(@Param("id")Integer id,@Param("enabled")Boolean enabled);
	
	int getSubListCnt(@Param("id")Integer id,@Param("enabled")Boolean enabled);
	
	int updatePath(@Param("id")Integer id);

	List<PartnerType> getParentList(@Param("partnerId") Integer partnerId);
    
}
